function Animation () {}

Animation.prototype = {
  addressMap: {
    'water': '水中',
    'land': '陆地'
  },
  breather: function ({name, type}) {
    console.log(`${name}在${this.addressMap[type]}呼吸`)
  }
}

const animation = new Animation()

animation.breather({
  name: '鱼',
  type: 'water'
})

// ------------------------------
// 新增动物 【鱼】